var index = {
    init: function() {
        this.slide();
    },
    slide: function() {
        var autoPlay = $('.slideBox img').length > 1;
        TouchSlide({
            slideCell: "#slideBox",
            titCell: ".hd ul", //开启自动分页 autoPage:true ，此时设置 titCell 为导航元素包裹层
            mainCell: ".bd ul",
            effect: "leftLoop",
            autoPage: true, //自动分页
            autoPlay: autoPlay //自动播放
        });
    }
}


index.init();